package pojo;

import lombok.Data;

import java.util.Date;

@Data
public class Customer {
    private int customerId;  // 顾客ID
    private String name;      // 顾客名称
    private String contact;   // 顾客联系号码
    private String address;   // 顾客地址
    private Date registrationDate;  // 顾客注册时间
    private int leftMoney;    // 余额
    private int driverLicenseNumber;  // 驾驶证号码
    private String password;   // 顾客密码
    private int rentCarNumber; // 租车台数

    // 添加构造方法、getter 和 setter 方法

    public Customer() {
        // 默认构造方法
    }

    // 添加带有所有属性的构造方法
    public Customer(int customerId, String name, String contact, String address, Date registrationDate,
                    int leftMoney, int driverLicenseNumber, String password, int rentCarNumber) {
        this.customerId = customerId;
        this.name = name;
        this.contact = contact;
        this.address = address;
        this.registrationDate = registrationDate;
        this.leftMoney = leftMoney;
        this.driverLicenseNumber = driverLicenseNumber;
        this.password = password;
        this.rentCarNumber = rentCarNumber;
    }


}
